#ifndef Tab_Test_tabletools_h
#define Tab_Test_tabletools_h
#include <string>
#include <map>
#include <list>
#include <sstream>
#include <fstream>
class Tab_Test
{
public:
enum eAttack{
eATTACK_1 = 0,
eATTACK_2 = 1,
};
enum eType{
TYPE_2 = 1,
TYPE_1 = 0,
};
enum eTargetObjType{
eTargetObjType_Normal = 0,
eTargetObjType_Self = 1,
};
private:
int m_ID;
std::string m_Name;
int m_Power;
float m_Storm;
eType m_Type;
eAttack m_Attack;
public:
int GetID() {return m_ID;}
std::string GetName() {return m_Name;}
int GetPower() {return m_Power;}
float GetStorm() {return m_Storm;}
eType GetType() {return m_Type;}
eAttack GetAttack() {return m_Attack;}
public:
void SetID(int var){m_ID=var;}
void SetName(std::string var){m_Name=var;}
void SetPower(int var){m_Power=var;}
void SetStorm(float var){m_Storm=var;}
void SetType(eType var){m_Type=var;}
void SetAttack(eAttack var){m_Attack=var;}
private:
void LoadData(const std::string &strData);
public:
static std::map<int, Tab_Test*> *s_pListTab_Test;
static void LoadTable();
};
typedef std::map<int, Tab_Test*> MapTab_Test;
#endif
